import { pluginManager } from "@/components/formdesigner/utils";
import Test from "@/components/formdesigner/designer-extensions/components/Test/index";
import UserSelect from "@/components/formdesigner/designer-extensions/components/UserSelect/index";


// 安装扩展
export function setupDesignerExtensions(): void {
  // 注册组件
  pluginManager.registerComponent(Test);
  // 注册组件
  pluginManager.registerComponent(UserSelect);

  // 添加右侧模块
  // pluginManager.registerRightSidebar({
  //   id: "test_view",
  //   title: "扩展",
  //   component: async () => await import("@/components/formdesigner/designer-extensions/sidebar/TestView/index.vue"),
  // });

  // // // 添加活动栏模块
  // pluginManager.registerActivitybar({
  //   id: 'test',
  //   title: '扩展',
  //   icon: 'epic-icon-daima1',
  //   component: async () => await import("./sidebar/TestView/index.vue"),
  // })


}
